
package com.spring.fegin;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 功能描述,该部分必须以中文句号结尾。
 *
 * @author panqingcui
 * @create 2017-02-22 10:59
 */
    @org.springframework.cloud.netflix.feign.FeignClient(value = "spring-cloud-service-server",fallback = FeignClientHystrix.class)
    public interface  FeignClient {
        @RequestMapping(method = RequestMethod.GET, value = "/add")
        Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b);
    }

